<?php


namespace app\common\model;

/**
 * 用户表
 * Class UsersModel
 * @package app\api\model
 */
class UsersModel extends CommonModel
{
    protected $name = 'users';
    protected $hidden = ['password', 'delete_time','salt'];


    public function getLoginTimeAttr($time)
    {
        return date('Y-m-d H:i:s',$time);
    }
}